import router from '@/router'
import { Toast } from 'vant'

export function resError(str) {
    Toast.fail(str)
    if(str == "访问受限，身份过期"){
        localStorage.removeItem("token")
        setTimeout(() => {
            // Vue.prototype.$router.push('/authorization');
            router.push('/authorization')
        }, 500)
    }
}
   